package org.kukker;

import android.view.MotionEvent;


public class Util {
	public static class kMotionEvent {
		public static String getActionName(MotionEvent event){
		int action = event.getAction();
			String actionName="";
			if(action == MotionEvent.ACTION_DOWN){
				 actionName = "Down";
			}
			else if(action == MotionEvent.ACTION_UP){
				actionName = "Up";
			}
			else if(action == MotionEvent.ACTION_MOVE){
				actionName = "Move";
			}
			else if(action == MotionEvent.ACTION_CANCEL){
				actionName = "Cancel";
			}
			 
			return actionName;
		}
		
	}
	 
	public static class kString {
		public static String getStringNotNull(String txt){
			return ((txt==null)?"":txt);
		}
		
		
	}
	
}